package java_thinking.unit_18_IO._18_8;

import java.io.PrintWriter;

/**
 * @Desc:   将System.out转换成PrintWriter
 * @author: cww
 * @DateTime: 2019-05-16 22:01
 */

public class ChangeSystemOut {
    public static void main(String[] args) {
        //System.out-->PrintStream-->OutputStream
        //true 开启自动清空功能，否则看不到输出
        PrintWriter out = new PrintWriter(System.out,true);
        out.println("Hello word");
    }
}
